package com.itqf.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/10/15
 * @Time: 下午3:10
 */
public class MyQuartzJob  implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //备份数据库
        //监控api(http://xxxx/find)执行时间   发送警告邮件

        System.out.println("执行了！！！"+jobExecutionContext.getJobDetail().getJobDataMap().get("name"));

    }
}
